package waysing.cream.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 作者 E-mail:weixinXie 274604559@qq.com
 * @version 创建时间：2018\3\8 0008 10:49
 * @describe 作者很懒，什么都没留下
 */
//等同于同时加上了@Controller和@ResponseBody
@RestController
public class HelloController {
    //访问/hello或者/hi任何一个地址，都会返回一样的结果
    @RequestMapping(value = {"/hello","/hi"},method = RequestMethod.GET)
    public String say(){
        return "hi you!!!";
    }
}
